<?php

require(dirname(__FILE__).'/libs/Smarty.class.php');
// The setup.php file is a good place to load
// required application library files, and you
// can do that right here. An example:
// require('guestbook/guestbook.lib.php');
class mySmarty extends Smarty {
    function mySmarty(){
        // Class Constructor.
        // These automatically get set with each new instance.
        $this->Smarty();
        $this->template_dir = realpath(dirname(__FILE__).'/../tpl/');
        $this->compile_dir = realpath(dirname(__FILE__).'/templates_c/');
        $this->config_dir = realpath(dirname(__FILE__));
        $this->cache_dir = realpath(dirname(__FILE__).'/cache/');


        $this->left_delimiter = '<!--TPL:';
        $this->right_delimiter = '-->';

        $this->debugging =        0; //отладка
        $this->caching =          0; // кэширование
        $this->compile_check =    1; //проверка обновлений кода
        $this->force_compile =    1; // ТОЛЬКО ПРИ РАЗРАБОТКЕ
    }

}